﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JHDY.aspx.cs" Inherits="Xiaov.SmartWeb.Application.TZGC.JHDY" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>井号对应</title>
    <script type="text/javascript" src="/Resources/easyui-1.32/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/Resources/xiaovcn/scripts/usercheck.js"></script>
    <script type='text/javascript' src='../../SupCan/binary/dynaload.js?60'></script>
    <script type="text/javascript" language="javascript">
        function OnReady(id) {
            var table = "<%=tableName %>";
            if (id == "AF") {
                if (table == "yt_jhdy") {
                    document.AF.func("Build", "JHDY.xml");
                }
                else if (table = "yt_gcbieming") {
                    document.AF.func("Build", "GcBieMing.xml");
                }
                document.AF.func("Load", "JHDYData.aspx?table=" + escape(table));
            }
        }
        function OnEvent(id, Event, p1, p2, p3, p4) {
            if (id == "AF") {
                if (Event == "MenuBeforePopup") {
                    document.AF.func("DisableMenu", "copy,paste,import,selectCol");
                }
            }
        }
        function saveData() {
            var hd = document.getElementById("<%=HDData.ClientID %>");
            var data = document.AF.func("GetChangedXml", "level=1");
            hd.value = data;
            if (data == "0") {
                return false;
            }
            else {
                return true;
            }
        }
        //        $(function () {
        //            $('#content').height(userScreenHeight);
        //        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:HiddenField ID="HDData" runat="server" />
    </div>
    <div id="content" style="overflow: scroll; height: 100%">
        <div class="tools" style="width: 100%; height: 5%; position: relative">
            <%--<asp:DropDownList ID="ddl_Owner" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="ddl_Year" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="ddl_Month" runat="server">
            </asp:DropDownList>
            <input type="button" id="btn_query" onclick="query();" />--%>
            <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" OnClientClick="return saveData();" />
        </div>
        <div style="width: 100%; position: relative" id="tree">
            <script language="javascript" type="text/javascript">
                insertTreeList('AF', '') 
            </script>
        </div>
    </div>
    <script type="text/javascript" language="javascript">
        var height1 = $("body").height();
        var height = height1 * 0.9;
        document.getElementById("tree").style.height = height.toString() + "px";
    </script>
    </form>
</body>
</html>
